<?php
header("Content-Type:text/html;charset=UTF-8");
include_once("../c/config.php");
$mysqli = new mysqli($dbhost, $dbuser, $dbpwd, $dbName);
if (!$mysqli->set_charset("utf8")) {printf("Error loading character set utf8: %s\n", $mysqliTwo->error);}
 
$query=$mysqli->query("SELECT openid,nickname,avatar FROM `users`  ");
while ($list=$query->fetch_assoc()){
    if (!empty($list['nickname'])){
        echo base64_decode($list['nickname']);
        echo ' ------ ',$list['openid'];
        echo "<img src='".$list['avatar']."' width='100' />";
        echo "<br />";
    }
    
}